package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.model.dto.DishDto;
import com.itheima.reggie.model.entity.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {

    //新增菜品，同时插入菜品对应的口味数据，需要操作两张表：dish dish_flavor
    public void savaWithFlavor(DishDto dishDto);

    public void removeWithFlavor(List<Long> ids);

    //修改菜品，需要操作两张表：dish dish_flavor
    public void updateWithFlavor(DishDto dishDto);

    //根据dishId查询菜品信息和对应的口味信息
    public DishDto getByIdWithFlavor(Long dishId);

}
